﻿@section head {
     <meta http-equiv="refresh" content="@ViewBag.scoreboardRefreshTimeSpan" />
    
    <style type="text/css">
        h2 {
            padding: 0 0 0px;
            top:0px;
        }
        
        tr.even {
            background-color: #eee;
        }
            tr.odd {
            background-color: LightYellow;
        }
        
        body
        {
            margin-top : 10px;
            margin-bottom : 10px;
        }
        
        /*
        table, th, td
        {
            font-size:26px;
            border: 1px solid black;
            border-collapse: separate;
        }
        
        table th {
            background-color: #E8EEF4;
            padding: 6px 5px;
            text-align: center;
            font-size:50px; border: 2px solid LightBlue;
        }
        */
        table, th, td
        {
            font-size:26px;
            text-align: center;
            font-weight:bold;
            border: 2px solid LightBlue;
            border-collapse: separate;
        }
        
        table th {
            background-color: #F5FFFA; 
            padding: 6px 5px;
            text-align: center;
            border: 2px solid LightBlue;
        }
        
        .scoreDetails
        {
            font-size:30px;
            text-align: center;
            font-weight:bolder;
        }
        
        h2 {
            padding: 0 0 2px 0;
        }

    </style>
    
    <script>
        $(document).ready(function () {
            $('table.stripe tbody tr:odd').addClass('odd');
            $(".tagline").letterfx({ "fx": "fly-right fly-bottom spin" });
            /*$('table.stripe tbody tr:even').addClass('even'); */
        });
    </script>

    <script type="text/javascript">
        (function ($) {
            $(function () {
                $("#scroller").simplyScroll({
                    orientation: 'vertical'
                });
            });
        })(jQuery);
    </script>
}

@{
    ViewBag.Title = "Computing Contest Scoring";
    Layout = "~/Views/Shared/_LayoutIntranet.cshtml";
    string currentContestyear = Qu.ComputingContest.Model.RegistrationRepository.GetCurrentContestYear().ToString();
}

@if (ViewBag.IsScoreBoard && ViewBag.FinalScores != null)
{
    <center>
        <h2 class="tagline" style="font-size:38px;">Qatar University Computing Contest @Html.Raw(currentContestyear) - Final Round</h2>
    </center>
    
    @Html.Partial("ScoreBoardList", (IEnumerable<Qu.ComputingContest.Model.ScoreSummary>)ViewBag.FinalScores)

    <center>
        <h2>Qatar University Computing Contest @Html.Raw(currentContestyear) - Qualifying Scores</h2>
    </center>
}

@*<center>
    <h2>Qatar University Computing Contest @Html.Raw(currentContestyear) - Score Board</h2>
</center>*@
  
@if (ViewBag.IsScoreBoard && ViewBag.Top5Scores != null)
{
    @Html.Partial("ScoreBoardList", (IEnumerable<Qu.ComputingContest.Model.ScoreSummary>)ViewBag.Top5Scores)
}

@if (ViewBag.IsScoreBoard && ViewBag.OtherScores != null)
{
         <div id="scroller" style="width: 100%; height: 4500px;">
            @Html.Partial("ScoreBoardScroll", (IEnumerable<Qu.ComputingContest.Model.ScoreSummary>)ViewBag.OtherScores)
        </div>
        <script>
            $(document).ready(function () {
                $('.simply-scroll').css("width: 100%;");
                /*$('table.stripe tbody tr:even').addClass('even'); */
            });
        </script>
}
